package com.example.evanproject.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 
 * @TableName trends
 */
@TableName(value ="trends")
@Data
public class Trends implements Serializable {
    /**
     * 动态id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论创建时间
     */
    private String createTime;

    /**
     * 父级评论ID
     */
    private Integer parentId;

    /**
     * 评论用户ID
     */
    private Integer userId;

    /**
     * 评论里面的图片
     */
    private String img;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    @TableField(exist = false)
    private Register  userinfo;
    @TableField(exist = false)
    private List<Trends> children;

}